package com.lsy.assistant;

import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

@AiService(wiringMode = AiServiceWiringMode.EXPLICIT,chatModel = "openAiChatModel")
public interface Assistant {
    //1.用户提示词
    @UserMessage("你是我的好朋友，请用上海话回答问题，并且添加一些表情符号。 {{userMessage}}")
    String chat(@V("userMessage") String userMessage);
}